﻿#include <csignal>
#include <iostream>
#include "pro_mgr.h"
#include "common/global_include.h"
using namespace std;

int main() {
	static toolkit::semaphore sem;
	//初始化程序
	mv::ProMgr::getSingleton()->initPro();
	//退出程序事件处理
	signal(SIGINT, [](int) { sem.post(); });// 设置退出信号
	sem.wait();
	InfoL << "程序退出!";
	return 0;
}
